import request from "@/utils/request";

// 获取试卷管理列表
export function getList(data) {
  return request({
    url: "/api/exam/paper/getList",
    method: "post",
    data,
  });
}
// 获取试卷管理
export function getInfo(id) {
  return request({
    url: `/api/exam/paper/${id}`,
    method: "get",
  });
}
// 获取试卷管理详情
export function getDetail(id) {
  return request({
    url: `/api/exam/paper/detail/${id}`,
    method: "get",
  });
}
// 删除试卷管理
export function Delete(id) {
  return request({
    url: `/api/exam/paper/${id}`,
    method: "DELETE",
  });
}
// 修改试卷管理
export function Update(data) {
  return request({
    url: `/api/exam/paper/${data.id}`,
    method: "PUT",
    data,
  });
}
// 新建试卷管理
export function Create(data) {
  return request({
    url: "/api/exam/paper",
    method: "post",
    data,
  });
}
